package org.emmannuel.virtues.client;

import java.util.ArrayList;

import org.emmannuel.virtues.client.common.TOSuggestion;
import org.emmannuel.virtues.client.common.TOVirtue;

import com.google.gwt.user.client.rpc.AsyncCallback;

/**
 * The async counterpart of <code>GreetingService</code>.
 */
public interface RequesterAsync {
	void greetServer(String input, AsyncCallback<String> callback);
	void showVirtues(AsyncCallback<ArrayList<TOVirtue>> callback);
	void adoptVirtue(Integer id, int user, AsyncCallback<Boolean> callback);
	void getVirtueSuggestion(int virtueId,
			AsyncCallback<ArrayList<TOSuggestion>> callback);
	void register(String capcha, String eMail, String name, String pass,
			AsyncCallback<Boolean> callback);
}
